<?php $this->context->layout = 'form';?>
<?= \common\widgets\Asset::widget(['type'=>['viewer']])?>
<div class="layui-card-body">
    <div class="layui-collapse like-layui-collapse" lay-accordion=""
         style="border:1px dashed #c4c4c4">
        <div class="layui-colla-item">
            <h2 class="layui-colla-title like-layui-colla-title" style="background-color: #fff">操作提示<i
                    class="layui-icon layui-colla-icon"></i></h2>
            <div class="layui-colla-content layui-show">
                <p>*提现金额不可大于【可提现金额】</p>
                <p>*提现金额必须是数字</p>
                <p>*提现金额请保留小数点后两位，如有输入错误，后果自行承担</p>
                <p>*提现申请提交成功后，等待客服审核，审核通过后将转账到微信零钱，如果审核不通过提现金额将自行返回</p>
            </div>
        </div>
    </div>
</div>
<form class="form-horizontal m" id="form-admin-add">
    <table class="table table-striped">
        <tr>
            <th>总金额</th>
            <td><?=$model->total_brokerage?></td>
        </tr>
        <tr>
            <th>已提现金额</th>
            <td><?=$model->already_brokerage?></td>
        </tr>
        <tr>
            <th>可提现金额</th>
            <td><?=$model->can_brokerage?></td>
        </tr>
        <tr>
            <th>手续费</th>
            <td><?=$fee?>%</td>
        </tr>
        <tr>
            <th>收款微信</th>
            <td>
                <?=$userHtml?>
            </td>
        </tr>
        <tr>
            <th>提现金额</th>
            <td>
                <input type="number" class="form-control" name="amount" value="<?=$model->can_brokerage?>">
            </td>
        </tr>
    </table>
</form>

<?php $this->beginBlock('script'); ?>
<script>
    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save("<?=\yii\helpers\Url::to(['apply'])?>", $('#form-admin-add').serialize());
        }
    }
</script>
<?php $this->endBlock(); ?>
